import service from "./service/cimrtsService";
import { getProjectManager } from "@/scripts/getProjectManager";


const esForestBaseUrl = () => {
    const objm = getProjectManager()
    return objm.eSForestManager.esForestUrl.match(/^(https?:\/\/[^\/]+)/)?.[1]
}


// 提交
export const reqFeEditorMultioperation = (data: any) => {
    const getInfoData = service({
        url: `${esForestBaseUrl()}/editor/multioperation`,
        method: 'post',
        data
    })
    return getInfoData
}
// 删除选中树木
export const deleteTreeService = (data: any) => {
    const getInfoData = service({
        url: `${esForestBaseUrl()}/treerecord/delete`,
        method: 'post',
        data
    })
    return getInfoData
}